-
Notifications
You must be signed in to change notification settings - Fork 1k
[Do not merge until MSAL.NET 4.0 releases] Jmprieur/msal4.0 #107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Using the async serialization in the SessionTokenCacheProviders
Updating README.md with a sample connection string, for localdb
- proposing a localdb connection string as a comment in the appsettings.json - Now, uncommenting the comments still builds (and it's obvious now which), now builds correctly (renamed tokenCacheDbContext into tokenCacheDbContextForCreation as it used to conflict with the tokenCacheDbContext in the AddScoped block
@@ -119,9 +125,9 @@ public void Clear() | |||
/// Triggered right before MSAL needs to access the cache. Reload the cache from the persistence store in case it changed since the last access. | |||
/// </summary> | |||
/// <param name="args">Contains parameters used by the MSAL call accessing the cache.</param> | |||
private void AppTokenCacheBeforeAccessNotification(TokenCacheNotificationArgs args) | |||
private async Task AppTokenCacheBeforeAccessNotificationAsync(TokenCacheNotificationArgs args) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And therefore the callback are async
{ | ||
this.HttpContext.Session.LoadAsync().Wait(); | ||
await this.HttpContext.Session.LoadAsync(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And we don't need to block any longer!
|
||
//var tokenCacheDbContext = new TokenCacheDbContext(tokenCacheDbContextBuilder.Options); | ||
//tokenCacheDbContext.Database.EnsureCreated(); | ||
/* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Transforming in /* comments so that it's obvious what to uncomment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left comments to explain the PR
|
||
var tokenCacheDbContextForCreation = new TokenCacheDbContext(tokenCacheDbContextBuilder.Options); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Renamed tokenCacheDbContext -> tokenCacheDbContextForCreation as there was a conflict
Purpose
Update the sample to MSAL.NET 4.0
Does this introduce a breaking change?
Pull Request Type
What kind of change does this Pull Request introduce?
How to Test
Follow the README.md